package com.kuqi.core;

public class PersistentDataState {

    private boolean userInfoState = false;
    private boolean homeDataState_banner = false;
    private boolean homeDataState_music= false;
    private boolean homeDataState_science = false;
    private boolean homeDataState_carton = false;
    private boolean storeDataState_promotion = false;
    private boolean storeDataState_love = false;
    private boolean storeDataState_travel = false;
    private boolean storeDataState_master = false;
    private boolean storeDataState_game = false;


    /**
     * 检测home数据是否已经预加载完成
     * @return y/n
     */
    public boolean checkAllReadyHome(){
        return homeDataState_banner && homeDataState_music && homeDataState_science && homeDataState_carton;
    }

    /**
     * 检测store数据是否已经预加载完成
     * @return y/n
     */
    public boolean checkAllReadyStore(){
        return storeDataState_promotion && storeDataState_love && storeDataState_travel && storeDataState_master && storeDataState_game;
    }


    public boolean isUserInfoState() {
        return userInfoState;
    }

    public void setUserInfoState(boolean userInfoState) {
        this.userInfoState = userInfoState;
    }

    public boolean isHomeDataState_banner() {
        return homeDataState_banner;
    }

    public void setHomeDataState_banner(boolean homeDataState_banner) {
        this.homeDataState_banner = homeDataState_banner;
    }

    public boolean isHomeDataState_music() {
        return homeDataState_music;
    }

    public void setHomeDataState_music(boolean homeDataState_music) {
        this.homeDataState_music = homeDataState_music;
    }

    public boolean isHomeDataState_carton() {
        return homeDataState_carton;
    }

    public void setHomeDataState_carton(boolean homeDataState_carton) {
        this.homeDataState_carton = homeDataState_carton;
    }

    public boolean isHomeDataState_science() {
        return homeDataState_science;
    }

    public void setHomeDataState_science(boolean homeDataState_science) {
        this.homeDataState_science = homeDataState_science;
    }

    public boolean isStoreDataState_promotion() {
        return storeDataState_promotion;
    }

    public void setStoreDataState_promotion(boolean storeDataState_promotion) {
        this.storeDataState_promotion = storeDataState_promotion;
    }

    public boolean isStoreDataState_love() {
        return storeDataState_love;
    }

    public void setStoreDataState_love(boolean storeDataState_love) {
        this.storeDataState_love = storeDataState_love;
    }

    public boolean isStoreDataState_travel() {
        return storeDataState_travel;
    }

    public void setStoreDataState_travel(boolean storeDataState_travel) {
        this.storeDataState_travel = storeDataState_travel;
    }

    public boolean isStoreDataState_master() {
        return storeDataState_master;
    }

    public void setStoreDataState_master(boolean storeDataState_master) {
        this.storeDataState_master = storeDataState_master;
    }

    public boolean isStoreDataState_game() {
        return storeDataState_game;
    }

    public void setStoreDataState_game(boolean storeDataState_game) {
        this.storeDataState_game = storeDataState_game;
    }
}
